package java_DesignPattern.SixPrinciple.InterfaceSegregationPrinciple.Defualt;

/**
 * 川智安全门类
 */
public class ChuanZhiDoor implements SafetyDoor {
    @Override
    public void antiTheft() {
        System.out.println("川智安全门反盗");
    }

    @Override
    public void fireproof() {
        System.out.println("川智安全门防火");
    }

    //并不需要防水方法，所以不实现
    @Override
    public void waterproof() {
        throw new UnsupportedOperationException("川智安全门没有防水方法");
    }
}
